package cn.shadow.utils;

import java.nio.charset.Charset;

public class StringEncoder {
    public static final String UTF_8_NAME = "UTF-8";
    public static final Charset UTF_8 = Charset.forName("UTF-8");

    public StringEncoder() {
    }

    public static byte[] encode(String var0) {
        return var0.getBytes(UTF_8);
    }

    public static String encode(byte[] var0) {
        return new String(var0, UTF_8);
    }

    public static String encode(byte[] var0, int var1, int var2) {
        return new String(var0, var1, var2, UTF_8);
    }
}